package com.jy.reader_info.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jy.common.annotation.Excel;
import com.jy.common.core.domain.BaseEntity;

/**
 * 读者信息对象 reader_info
 * 
 * @author ruoyi
 * @date 2025-05-29
 */
public class ReaderInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 读者ID */
    private Long readerId;

    /** 读者编号 */
    @Excel(name = "读者编号")
    private String readerNo;

    /** 姓名 */
    @Excel(name = "姓名")
    private String fullName;

    /** 性别 */
    @Excel(name = "性别")
    private String gender;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthDate;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 读者类型 */
    @Excel(name = "读者类型")
    private String readerType;

    /** 最大借阅数量 */
    @Excel(name = "最大借阅数量")
    private Long maxBorrow;

    /** 借阅天数 */
    @Excel(name = "借阅天数")
    private Long borrowDays;

    /** 欠款金额 */
    @Excel(name = "欠款金额")
    private BigDecimal fine;

    /** 读者状态 */
    @Excel(name = "读者状态")
    private String status;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setReaderId(Long readerId) 
    {
        this.readerId = readerId;
    }

    public Long getReaderId() 
    {
        return readerId;
    }

    public void setReaderNo(String readerNo) 
    {
        this.readerNo = readerNo;
    }

    public String getReaderNo() 
    {
        return readerNo;
    }

    public void setFullName(String fullName) 
    {
        this.fullName = fullName;
    }

    public String getFullName() 
    {
        return fullName;
    }

    public void setGender(String gender) 
    {
        this.gender = gender;
    }

    public String getGender() 
    {
        return gender;
    }

    public void setBirthDate(Date birthDate) 
    {
        this.birthDate = birthDate;
    }

    public Date getBirthDate() 
    {
        return birthDate;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }

    public void setReaderType(String readerType) 
    {
        this.readerType = readerType;
    }

    public String getReaderType() 
    {
        return readerType;
    }

    public void setMaxBorrow(Long maxBorrow) 
    {
        this.maxBorrow = maxBorrow;
    }

    public Long getMaxBorrow() 
    {
        return maxBorrow;
    }

    public void setBorrowDays(Long borrowDays) 
    {
        this.borrowDays = borrowDays;
    }

    public Long getBorrowDays() 
    {
        return borrowDays;
    }

    public void setFine(BigDecimal fine) 
    {
        this.fine = fine;
    }

    public BigDecimal getFine() 
    {
        return fine;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("readerId", getReaderId())
            .append("readerNo", getReaderNo())
            .append("fullName", getFullName())
            .append("gender", getGender())
            .append("birthDate", getBirthDate())
            .append("phone", getPhone())
            .append("email", getEmail())
            .append("readerType", getReaderType())
            .append("maxBorrow", getMaxBorrow())
            .append("borrowDays", getBorrowDays())
            .append("fine", getFine())
            .append("status", getStatus())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
